<!DOCTYPE html>
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate">
<META HTTP-EQUIV="Expires" CONTENT="0">
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript"	src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript"	src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript">
	winxinShareForbidden();//微信分享禁用
	var returnBtn = document.getElementById('returnBtn');
	window.ontouchstart = function(e) {
		var id = e.target.id;
		if (id == "returnBtn") {
			returnBtn.click();
		} else {
			e.preventDefault();
		}
	};
	function winxinShareForbidden() {
		//alert("window.location.href:" + window.location.href);
		if (typeof WeixinJSBridge == "undefined") {
			if (document.addEventListener) {
				document.addEventListener('WeixinJSBridgeReady', onBridgeReady,	false);
			} else if (document.attachEvent) {
				document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
				document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
			}
		} else {
			onBridgeReady();
		}
	}
	function onBridgeReady() {
		WeixinJSBridge.call('hideOptionMenu');
	}
</script>
<style type="text/css">
* {
	-webkit-touch-callout: none; /*系统默认菜单被禁用*/
	-webkit-user-select: none; /*webkit浏览器*/
	-khtml-user-select: none; /*早期浏览器*/
	-moz-user-select: none; /*火狐*/
	-ms-user-select: none; /*IE10*/
	user-select: none;
}

input {
	-webkit-user-select: auto; /*webkit浏览器*/
}
</style>

</head>
<body oncontextmenu="return false">
	<p>测试复制文字</p>
	<form action="http://172.17.101.22:8080/web-test/HtmlServlet">
		<input type="text" name="account" value=""
			style="width: 200px; height: 100px"> <input type="submit"
			value="提交">
	</form>
	<br>
	<br>
	<a id="returnBtn" style="width: 200px; height: 100px"
		href="javascript:alert(1);">返回1
		</button>
</body>
</html>